<?php

/**
 * @author ducnhat
 * @email ddnhat@gmail.com
 * @copyright 2014
 */

class Admin_Form_ValidateBuyDept{
	
    protected $_isError = false;
	protected $_messageError = null;
    protected $_arrData = null;
    protected $_classError = null;
    
    public function __construct($params = array()){
        
        $translate = Zend_Registry::get('Zend_Translate');
        
        $validatePrice = new Zend_Validate();
        
        $validatePrice->addValidator(new Zend_Validate_Digits(), true)
                        ->addValidator(new Zend_Validate_GreaterThan(0), true);
        
        $date = new Zend_Date();
        $curDate = $date->get(Zend_Registry::get('date_format_insert'));
        
        $this->_arrData['date'] = $curDate;
        $this->_arrData['supplier_id'] = $params['supplier_id'];
        $this->_arrData['dept'] = $params['dept'];
    }
    
    public function isError(){
    	return $this->_isError;
    }
    
    public function getMessageError(){
        return $this->_messageError;
    }
    
    public function getClassError(){
    	return $this->_classError;
    }
    
    public function getData(){
        return $this->_arrData;
    }
}